/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of SimpleEL.
 * 
 * SimpleEL is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * SimpleEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with SimpleEL. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.simpleel.data;

/**
 * Bean with only 3 attributes
 * 
 * @author M. Hautle
 */
public class ShortBean {

    /**
     * Property constant for {@link #getBar()}/{@link #setBar(int)}. Type int.
     */
    public static final String ATTR_BAR = "bar";

    /**
     * Property constant for {@link #getFoo()}/{@link #setFoo(String)}. Type {@link String}.
     */
    public static final String ATTR_FOO = "foo";

    /**
     * Property constant for {@link #getBaz()}/{@link #setBaz(double)}. Type double.
     */
    public static final String ATTR_BAZ = "baz";

    /** string property. */
    private String foo;

    /** int property. */
    private int bar;

    /** double property. */
    private double baz;

    /**
     * Default constructor
     */
    public ShortBean() {
    }

    /**
     * Initializing constructor.
     * 
     * @param foo The string
     * @param bar The int
     * @param baz The double
     */
    public ShortBean(String foo, int bar, double baz) {
        this.foo = foo;
        this.bar = bar;
        this.baz = baz;
    }

    /**
     * @return Returns the baz.
     */
    public double getBaz() {
        return baz;
    }

    /**
     * @param baz The baz to set.
     */
    public void setBaz(double baz) {
        this.baz = baz;
    }

    /**
     * @return Returns the foo.
     */
    public String getFoo() {
        return foo;
    }

    /**
     * @param foo The foo to set.
     */
    public void setFoo(String foo) {
        this.foo = foo;
    }

    /**
     * @return Returns the bar.
     */
    public int getBar() {
        return bar;
    }

    /**
     * @param bar The bar to set.
     */
    public void setBar(int bar) {
        this.bar = bar;
    }
}
